<?php
class Plan_prestacion extends Modelo_base {

	var $table = 'planes_prestaciones';

	var $has_one = array("prestacion", "plan");

	// Validaciones de campos
	var $validation = array(
		'cantidad' => array(
	        'label' => 'Cantidad',
	        'rules' => array('required', 'numeric')
		),
		'distribucion_uniforme' => array(
	        'label' => 'Distribución uniforme',
	        'rules' => array('boolean')
		),
		'ilimitadas' => array(
	        'label' => 'Ilimitadas',
	        'rules' => array('boolean')
		)
	);

    // Optionally, don't include a constructor if you don't need one.
    function __construct($id = NULL)
    {
        parent::__construct($id);
    }
}

/* End of file plan_prestacion.php */
/* Location: ./application/models/plan_prestacion.php */